tests: Fix assert_files_hardlinked
authorColin Walters <walters@verbum.org>
Thu, 29 Jun 2017 01:39:16 +0000 (21:39 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 29 Jun 2017 15:34:57 +0000 (15:34 +0000)
commit2013db0527dc2f85ab21cdc37047154a26fd161c
treefb778e7e2ce16b9024472b15911eb9d97b89608a
parentea15025c192978420b42f654d028ae74a4f7a3ce
tests: Fix assert_files_hardlinked

It was always succeeding because we were trying to stat the inode number, and
failing, and thus getting the empty string for both, which compared as true.

Regression from:
<https://github.com/ostreedev/ostree/commit/74e3581e>

Noticed this while working on
<https://github.com/ostreedev/ostree/pull/974>
and looking at the test results.

Closes: #976
Approved by: jlebon
tests/libtest.sh